//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package wudashan.ui;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import javax.swing.JTextField;

public class PSKTextField extends JTextField {
    private static final String FILENAME = "setting.properties";
    private static final String PSK = "PSK";
    Properties properties = new Properties();

    public PSKTextField() {
        super(8);
        File file = new File("setting.properties");
        if (file.exists()) {
            try {
                InputStream in = new FileInputStream(file);
                Throwable var3 = null;

                try {
                    this.properties.load(in);
                } catch (Throwable var13) {
                    var3 = var13;
                    throw var13;
                } finally {
                    if (in != null) {
                        if (var3 != null) {
                            try {
                                in.close();
                            } catch (Throwable var12) {
                                var3.addSuppressed(var12);
                            }
                        } else {
                            in.close();
                        }
                    }

                }
            } catch (IOException var15) {
                var15.printStackTrace();
            }

            this.setText(this.properties.getProperty("PSK", "PSK"));
        } else {
            this.setText("0123456789");
        }

    }
}
